home *** CD-ROM | disk | FTP | other *** search
/ Libris Britannia 4 / science library(b).zip / science library(b) / PROGRAMM / CC_C / 0562.ZIP / ADDPATH.BAT < prev    next >
DOS Batch File  |  1987-03-29  |  1KB  |  32 lines

  1. echo off
  2. REM Following line is a "first-time switch" that allows this batch program
  3. REM to execute another bat program (ADDPAT) and logically return, without
  4. REM using the COMMAND /C construction.
  5. if PAT==%PATX% goto endit
  6. if "%1==" goto help
  7. goto next
  8. :help
  9. cls
  10. echo  ┌─────────────────────────────────────────────────────────────────────┐  
  11. echo  │  The ADDPATH routine requires a single pathname parameter, with no  │
  12. echo  │  semicolons.  Enter disk drive and directory path as appropriate.   │
  13. echo  │                                                                     │
  14. echo  │   Example:  To add to the PATH the sub-directory 123, located in    │
  15. echo  │             directory SPRED on drive C:, enter                      │
  16. echo  │                                                                     │
  17. echo  │                    ADDPATH C:\SPRED\123                             │
  18. echo  └─────────────────────────────────────────────────────────────────────┘  
  19. goto out
  20. :next
  21. path >addpath.dat
  22. set pat=%1
  23. REM  TO EXECUTE THIS FROM ANYWHERE: Add the full path to addpath.bas in the
  24. REM  next line.   E.g.,     change it to basica \dir\addpath
  25. basica addpath.bas
  26. addpat
  27. :endit
  28. set PATX=
  29. erase addpat.bat
  30. :out
  31. 
  32.